package com.medical.mapper;

import com.medical.pojo.Warning;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface WarningMapper {
    @Select("select * from warning")
    List<Warning> findAll();

    @Update("update warning set status = 2 where id = #{id}")
    void updateStatus(Integer id);
}
